using System.Collections;
using System.Collections.Generic;
using UnityEngine;




public class StateMachineResetMove : StateMachineBehaviour
{
    private Vector2 StopMove = new Vector2(0, 0);

    public override void OnStateMachineEnter(Animator animator, int stateMachinePathHash)
    {
        Rigidbody2D r = animator.GetComponentInParent<Rigidbody2D>();
        r.velocity = StopMove;
        Character character = animator.GetComponentInParent<Character>();
        character.Run = false;
    }




}
